import { Component, OnInit } from '@angular/core';
import {StudentService} from "../student.service";
import {FormBuilder, FormGroup} from "@angular/forms";

@Component({
  selector: 'app-login',
  templateUrl: './login.component.html',
  styleUrls: ['./login.component.css']
})
export class LoginComponent implements OnInit {
  isVisible = false;
  account: Account;
  validateForm: FormGroup;
  array: any;
  constructor(
    private studentService: StudentService,
    private formBuilder: FormBuilder,
  ) {
    this.validateForm = this.formBuilder.group({
      stuid: [''],
      password: [''],
    });
  }

  ngOnInit(): void {
    this.array=['/assets/images/timg.jpg']

  }

  showModal(): void {
    this.isVisible = true;
  }

  handleOk(): void {
    console.log('Button ok clicked!');
    this.isVisible= false;
  }

  handleCancel(): void {
    console.log('Button cancel clicked!');
    this.isVisible = false;
  }

  submitForm(){}

  // submitForm(values) {
  //   console.log('values', values);

  // }

}
